package com.ming.Controller;

import com.ming.Bean.MyBean;
import com.ming.Bean.MyConfigBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:weiming
 * @Date:2020/11/15
 */
@RestController
public class testController {

    @Autowired
    MyBean myBean;

    @Autowired
    MyConfigBean myConfigBean;

    @GetMapping("/")
    public void index(){
        System.out.println(myBean.getName());

        System.out.println(myConfigBean.getName()+" "+myConfigBean.getTitle());
    }

}
